﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace DreamWork.Model.ViewModel
{
    public abstract class ViewModelBaseWithId<T>:ViewModelBase
    {
        [DisplayName("标识")]
        [DataType(nameof(MetaDataType.Number))]
        [DataKey(true)]
        public virtual T Id { get; set; }
    }
}
